#include <iostream>
#include <string>

using namespace std;

class data;

class Time
{
private:
    int hour;
    int min;
    int sec;

public:
    Time()
        : hour(0),min(0),sec(0)
    {

    }
    Time(int hour , int min , int sec)
        : hour(hour) , min(min),sec(sec)
    {

    }
    ~Time()
    {

    }
public:
    void show_Time()
    {
        cout << this->hour << ":" << this->min << ":" << this->sec << endl;
    }

    friend data;
};

class data
{
private:
    int year;
    int month;
    int day;

public:
    data()
        :year(0),month(0),day(0)
    {

    }
    data(int year , int month , int day)
        : year(year) , month(month) , day(day)
    {

    }

public:
    void show_Data()
    {
        cout << this->year << "/" << this->month << "/" << this->day << endl;
    }

void show_Data_Time(Time & T)
{
    cout << this->year << "/" << this->month <<"/" << this->day << endl;
    cout << T.hour <<":" <<T.min <<":" <<T.sec << endl;
}

friend Time;

};


int main(int argc, char const *argv[])
{
    Time T(16 , 14 ,30);
    data D(2025 , 1 ,17);

    D.show_Data_Time(T);
    
    return 0;
}
